#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "DialogTraining.h"
#include "addWordDialog.h"
#include "datafile.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
	Q_OBJECT

public:

	explicit MainWindow(QWidget *parent = 0);
	void showList(WordList *list);
	~MainWindow();
public slots:
	void on_actionEnglish_triggered();
	void on_actionGerman_triggered();
	void on_buttonStart_clicked();
	void updateTable(void);
	void addWords(WordList *list);
	void showWord(void);
private:
	Ui::MainWindow *ui;
	DialogTraining *dialogTraining;
	addWordDialog *addDialog;
	WordList *p_currentList;
	DataFile *data;
	WordList *englishList;
	WordList *germanList;
	QString currentFileName;
};

#endif // MAINWINDOW_H
